﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SampleCardPrint.aspx.cs"
    Inherits="PPAP.Web.Part.SampleCardPrint" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .td1
        {
            border-color: #2A48CE;
            border: 1px;
            border-style: solid;
            border-color: Gray;
            margin: 0;
            height:26px;
        }
        .td2
        {
            border-color: #2A48CE;
            border: 1px;
            border-style: solid;
            border-color: Gray;
            margin: 0;
            border-top-width: 0;
            height:26px;
        }
        .td3
        {
            border-color: #2A48CE;
            border: 1px;
            border-style: solid;
            border-color: Gray;
            margin: 0;
            border-top-width: 0;
            border-left-width: 0;
            height:26px;
        }
        .td4
        {
            border-color: #2A48CE;
            border: 0;
            border-bottom-width: 1px;
            border-style: solid;
            border-color: Gray;
            height:26px;
        }
        .td5
        {
            border-color: #2A48CE;
            border: 0;
            border-left-width: 1px;
            border-style: solid;
            border-color: Gray;
            text-align: center;
            height:26px;
        }
        .td6
        {
            border-color: #2A48CE;
            border: 0;
            border-top-width: 1px;
            border-style: solid;
            border-color: Gray;
            height: 32px;
            height:26px;
        }
        .td7
        {
            border-color: #2A48CE;
            border: 1px;
            border-style: solid;
            border-color: Gray;
            margin: 0;
            border-left-width: 0;
            height:26px;
        }
         .td8
        {
            border-color: #2A48CE;
            border: 0;
            border-right-width: 1px;
            border-style: solid;
            border-color: Gray;
            height: 32px;
            height:26px;
        }
        .td9
        {
            border-color: #2A48CE;
            border: 1px;
            border-style: solid;
            border-color: Gray;
            margin: 0;
            border-bottom-width:0;
            border-top-width: 0;
            height:26px;
        }
       
    </style>

    <!-- 插入打印控件 -->
		<OBJECT id="jatoolsPrinter" codeBase="jatoolsP.cab#version=1,1,6,1" classid="CLSID:B43D3361-D975-4BE2-87FE-057188254255" VIEWASTEXT>
		</OBJECT>
    <script language="javascript">
        function doPrint(how) {

            if (typeof (jatoolsPrinter.page_div_prefix) == 'undefined') {
                alert("请按页顶上的黄色提示下载ActiveX控件.如果没有提示请按以下步骤设置ie.\n 工具-> internet 选项->安全->自定义级别,设置 ‘下载未签名的 ActiveX ’为'启用'状态")
                return;
            }
            //打印文档对象
            var myreport = {
                documents: document,    // 打印页面(div)们在本文档中
                copyrights: '杰创软件拥有版权 www.jatools.com'         // 版权声明必须
            };

            // 调用打印方法
            if (how == 'Preview...')
                jatoolsPrinter.printPreview(myreport); 	// 打印预览

            else if (how == 'Print...')
                jatoolsPrinter.print(myreport, true); 		// 打印前弹出打印设置对话框

            else
                jatoolsPrinter.print(myreport, false);       // 不弹出对话框打印
        }
		</script>
    <style media="print">
      .Noprint { DISPLAY: none }
      UNKNOWN { PAGE-BREAK-AFTER: always }
		</style>
</head>

<body style="font-family: Arial, Helvetica, sans-serif; " bgcolor="#E7E8E8">
    <form id="form1" runat="server">
	<table cellspacing="0" cellpadding="0" width="100%" border="0">
		<tr>
			<td align="right" width="100%" colspan="2">
				<input onclick="doPrint('Preview...')" type="button" value="Preview" class="button" />
		        <input onclick="doPrint('Print...')" type="button" value="Print" class="button" />
			</td>
		</tr>
	</table>
    <div id="page1">
        <table width="650" align="center"cellspacing="0" >
            <tr>
                <td colspan="3" align="center">
                    <img src="image/u76.jpg" style="height: 145px; width: 241px" />
                </td>
            </tr>
            <tr>
                <td rowspan="4" style="font-weight: bold; width: 34%; font-size:larger; padding-left:15px;">
                    R&D department/<br />
                    &nbsp;Sample
                </td>
                <td class="td1" style="width: 33%;">
                    Sample card/version
                </td>
                <td class="td7">
                    &nbsp;
                    <asp:Label ID="lblSampleCard" runat="server" Text="Label"></asp:Label>
                    /<asp:Label ID="lblSampleVersion" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="td2">
                    PPAR/version
                </td>
                <td class="td3">&nbsp;
                    <asp:Label ID="lblPPAR" runat="server" Text="Label"></asp:Label>
                    /<asp:Label ID="lblPPARVersion" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="td2">
                    Date
                </td>
                <td class="td3">&nbsp;
                <asp:Label ID="lblDate0" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="td9">
                    status
                </td>
                <td class="td8">&nbsp;
                    <asp:Label ID="lblStatus" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
        </table>

        <table width="650" align="center"cellspacing="0">
            <tr><td colspan="4" class="td1" style="font-weight:bold; ">Part info</td></tr>
            <tr><td colspan="2" class="td2">Supplier name:<asp:Label ID="lblSupplierName" 
                    runat="server" Text="Label"></asp:Label>
                </td><td colspan="2" class="td3">BDNT revision no.: 
                    <asp:Label ID="lblBDNTRevisionNo" runat="server" Text="Label"></asp:Label>
                </td></tr>
            <tr><td colspan="2" class="td2">Supplier Code:<asp:Label ID="SupplierNo" 
                    runat="server" Text="Label"></asp:Label>
                </td><td colspan="2" class="td3">BDNT revision status:<asp:Label 
                        ID="BDNTRevisionStatus" runat="server" Text="Label"></asp:Label>
                </td></tr>
            <tr><td colspan="2" class="td2">SW-version: 
                <asp:Label ID="lblSWVersion" runat="server" Text="Label"></asp:Label>
                </td><td colspan="2" class="td3">HW-version:<asp:Label ID="lblHWVersion" 
                        runat="server" Text="Label"></asp:Label>
                </td></tr>
            <tr><td colspan="4" class="td2">Sampling reason: 
                <asp:Label ID="SamplingReason" runat="server" Text="Label"></asp:Label>
                </td></tr>
            <tr><td colspan="4" class="td2">Modification scope: 
                <asp:Label ID="lblModificationScope" runat="server" Text="Label"></asp:Label>
                </td></tr>
            <tr><td colspan="2" class="td2">Quality maganment</td><td colspan="2" class="td3">Department/Sampe card name:<asp:Label 
                        ID="lblDepartment" runat="server" Text="Label"></asp:Label>
                </td></tr>
            <tr><td colspan="2" class="td2">Name: 
                <asp:Label ID="lblQualityMaganment" runat="server" Text="Label"></asp:Label>
                </td><td colspan="2" class="td3">Name/Name:<asp:Label 
                        ID="lblTeName" runat="server" Text="Label"></asp:Label>
                </td></tr>
            <tr><td colspan="2" class="td2">Phone: 
                <asp:Label ID="lblPhone" runat="server" Text="Label"></asp:Label>
                </td><td colspan="2" class="td3">Telefon/phone:<asp:Label ID="lblTelePhone" 
                        runat="server" Text="Label"></asp:Label>
                </td></tr>
            <tr><td colspan="4" class="td2">Date: 
                <asp:Label ID="lblDate" runat="server" Text="Label"></asp:Label>
                </td></tr>
            <tr><td colspan="4" class="td2">Internal remarks: 
                <asp:Label ID="lblRemarks" runat="server"></asp:Label>
                </td></tr>
            <tr><td class="td2" style="width:25%; height:150px; vertical-align:text-top;">
                <asp:CheckBox ID="cbG" runat="server" Enabled="False" />
                Release(green)<br />
                Definition green: 
                <br />
                ·100%acceptable for customer 
                <br />
                ·Achieves 100%  compliance creteria defined by department conducting the assessment</td>
                <td class="td3" style="width:25%; vertical-align:text-top;">
                    <asp:CheckBox ID="cbY" runat="server" Enabled="False" />
                    Conditional Release(yellow)                
                    <br />
                    Definition yellow: 
                    <br />
                    ·Suitable for customer<br />
&nbsp;·May remain in vehicle ·Spec.non-conformity is present only on uncritical specifications<br />
                    ·Resampling requried </td>
                    <td class="td3" style="width:25% ;vertical-align:text-top;">
                        <asp:CheckBox ID="cbR" runat="server" Enabled="False" />
                        Rejected(red)  
                        <br />
                        Definition Red: 
                        <br />
                        ·not suitable for customer  
                        <br />
                        ·must not remain in vehicle 
                        <br />
                        ·re-sampling required without delay      </td><td class="td3">&nbsp;</td></tr>
                        <tr><td colspan="4" class="td2">Deviation from specification: 
                            <asp:Label ID="lblDeviation" runat="server"></asp:Label>
                            </td></tr>
        </table>
    </div>
    </form>
</body>
</html>
